package com.itheima.io.writer.demo02;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class WriterDemo02 {

    public static void main(String[] args) throws IOException {

//        Writer writer = new FileWriter("itheima-io-writer\\b.txt");
        Writer writer = new FileWriter("itheima-io-writer\\b.txt", true);

        char[] chars = {'a', 'b', 'c', 'd', 'e'};
//        writer.write(chars);

//        writer.write(chars, 0, 2);

        writer.write("蓝忘机");


        writer.close();

    }
}
